#include "args.hpp"

namespace icecode {

  ArgumentManager::ArgumentManager(int argc, char**argv)
  {
    for(int i = 0; i < argc; i++)
      {
	std::string s = argv[i];
	values.push_back(s);
      }
  }
  
  bool ArgumentManager::isPresent(std::string arg)
  {
    for(std::vector<std::string>::iterator it = values.begin(); it < values.end(); it++)
      if(*it == arg)
	return true;
    
    return false;
  }
}
